<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />

</head>

<body>

	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>签约管理</a></li>
	<li><a>创建签约</a></li>
	</ul>
	</div>

	<div class="formbody">

	<div class="formtitle"><span>创建签约</span></div>
	  <form id="form1" name="form1" method="post" enctype="multipart/form-data" action="{:U('/Home/Sign/add_sign')}" onsubmit="return form1_submit();">
	<ul class="forminfo">
	<li>
		<div style="width: 86px;line-height: 34px;display: block;float: left;">自媒体</div>
		<div class="dowebok" style="float: left;">
		<select name="media" id="media" >
			<option value="">请选择</option>
			<?php foreach ($medialist as $key => $value) { ?>
			<option value="<?php echo $value['id'];?>"><?php echo $value['media_name'];?></option>
			<?php }?>
		</select>
		</div>
	</li>
	<li><label>任务信息</label><input name="title" id="title" type="text" class="dfinput" value="" /><i></i></li>
	<li><label>任务要求</label><input name="demand" id="demand" type="text" class="dfinput" value="" /><i></i></li>

	<li><label>人数</label><input name="number" id="number" type="text" class="dfinput" value="1" onkeyup="this.value=this.value.replace(/[^\d]/g,'');"/><i></i></li>

	<li><label>性别</label>
	<label><input name="sex" type="radio" value="0" checked='checked' />全部</label>
	<label><input name="sex" type="radio" value="1" />男</label>
	<label><input name="sex" type="radio" value="2" />女</label>
	</li>
	<li>
		<label>截止日期：</label>
		<input type="text" class="dfinput" name="deadline" id="countTimestart" value="{$today}" size="17" class="date" readonly>
	 </li>


	<li><br><br><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认"/></li>
	</ul>
	  </form>

	</div>


</body>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/datepicker/WdatePicker.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script>
$(function() {
	$('#media').comboSelect();
});
</script>
<script type="text/javascript">
function form1_submit(){
	var media= $('#media').val();
	if(media.length == 0){
		layer.tips('请选择自媒体', '#media');return false;
	}
	var title= $('#title').val();
	if(title.length == 0){
		layer.tips('请填写任务信息', '#title');return false;
	}
	var demand= $('#demand').val();
	if(demand.length == 0){
		layer.tips('请填写任务要求', '#demand');return false;
	}
	var number= $('#number').val();
	if(number.length == 0){
		layer.tips('请填写人数', '#number');return false;
	}
}
</script>
<script type="text/javascript">
//时间选择
$(document).ready(function(){
	$('#countTimestart').click(function(){
		WdatePicker({minDate:'%y-%M-%d',startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});
	});
});
</script>
</html>
